#include "WidgetVariantImage.h"
#include "ui_WidgetVariantImage.h"
#include <QtWidgets/QFileDialog>
#include <iostream>
// #include <ExcelFunction.h>


WidgetVariantImage::WidgetVariantImage(QWidget *parent) :
    WidgetVariant(parent),
    ui(new Ui::WidgetVariantImage)
{
    ui->setupUi(this);

}

WidgetVariantImage::~WidgetVariantImage()
{
    delete ui;
}

void WidgetVariantImage::refreshByProperty(EItemMetaPropertyPtr p)
{
    WidgetVariant::refreshByProperty(p );
/*
    ui->labelName->setText( property.nameCN.isEmpty() ? property.name : property.nameCN );
    QString imgName = "image: url(" + 
            property.value.toString() + ");";
    
    ui->labelImg->setStyleSheet(imgName);
    std::cout<<"WidgetVariantImage::refreshByProperty, imgName="<<imgName.toLocal8Bit().data()<<"\n";
*/
}

